package com.qianying.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.util.Date;

/**
 * 服务类型实体类
 * 映射数据库中的service_type表
 */
@Data
@TableName("service_type")
@Schema(description = "服务类型实体类，存储服务类型相关信息")
public class ServiceType {

    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "主键ID，自增", example = "1")
    private Long id;

    @TableField("type_name")
    @Schema(description = "服务类型名称，唯一", required = true, example = "电器工程")
    private String typeName;

    @TableField("type_code")
    @Schema(description = "服务类型代号，用于系统内部标识", example = "ELECTRICAL")
    private String typeCode;

    @TableField("description")
    @Schema(description = "服务类型说明，描述该类型的业务场景", example = "电力系统安装、维修等相关工程服务")
    private String description;

    @TableField("create_time")
    @Schema(description = "记录创建时间，自动生成", example = "2025-08-05T10:30:00")
    private Date createTime;

    @TableField("update_time")
    @Schema(description = "记录最后更新时间，自动更新", example = "2025-08-05T15:45:00")
    private Date updateTime;
}
